< previous page page_663 next page >

Page 663
Chapter 19
Mathematical Tools
Computer graphics is an extremely mathematics intensive topic. While you can understand the ideas behind many techniques with good intuition, actually implementing those techniques often requires some heavy-duty computation.
For example, the idea behind ray tracing is straightforward. Send a ray from the center of projection out through a pixel on the screen until it hits an object. Then calculate the color of the object at that point. Even though the idea is simple, the implementation can be extremely complex. The program must find the ray's components, calculate the point of intersection between the ray and various objects, find the surface normal at the point of intersection, and use fairly complex calculations to pick the right color.
This chapter reviews some of the mathematical operations used in this book. The sections that follow are intended as a refresher course and reference, not as a complete introductory math course. For more details, consult a mathematics text.
If you understand these concepts and do not need a review, by all means skim this chapter or skip it completely.
Vectors and Matrices
Vectors and matrices are extremely useful in computer graphics. They let you represent complex operations in a uniform way using homogeneous coordinates.
Vectors and matrices are used extensively in linear algebra, so if you want more information, look for a good linear algebra text. Linear algebra goes far beyond the simpler operations used by computer graphics, so the following sections barely hint at what you will find in a decent text.
Modules M3Ops.bas and M4Opos.bas contain routines that manipulate three- and four-dimensional transformation matrices respectively.

 
< previous page page_663 next page >